package quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * @author ml
 * @create 2017-11-06--16:32
 */
public class MyJob implements Job {


    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

        System.out.println("执行时间："+new Date()+","+jobExecutionContext.getMergedJobDataMap().getString("name"));
        System.out.println("线程"+Thread.currentThread().getName());
    }
}
